package ch1;

import java.util.Scanner;

public class Zuoye03072 {
    public static void main(String[] args) {
        Scanner scan=new Scanner(System.in);
        System.out.println("请输入您的工资:");
        double a=scan.nextDouble();
        double c;
        if (a>15000){
            c=(a-15000)*0.15+700+225;
            System.out.println("您需要交"+c+"元的税");
        }else if (a>8000){
            c=(a-8000)*0.1+225;
            System.out.println("您需要交"+c+"元的税");
        }else if (a>3500){
            c=(a-3500)*0.05;
            System.out.println("您需要交"+c+"元的税");
        }else {
            System.out.println("您需要交"+a+"元的税");
        }
    }
}
